realtek: pcs: move polarity into SerDes struct
authorJonas Jelonek <jelonek.jonas@gmail.com>
Thu, 11 Dec 2025 23:33:59 +0000 (23:33 +0000)
committerRobert Marko <robimarko@gmail.com>
Tue, 16 Dec 2025 12:37:32 +0000 (13:37 +0100)
commit56a71f3c82a5d2f39e7db1c1f76a64d2f04b8d87
tree55abcfb1ecb65e8e2ca1abb4ee5f49ca66fc1265
parent18eea0548356454376ad3c60145446060325ace3
realtek: pcs: move polarity into SerDes struct

As a first real usage of the new SerDes struct, move the polarity
configuration there. It was previously located in the global rtpcs_ctrl
struct as an array, indexed by SerDes id. Because this is per-SerDes
information, the new SerDes struct is the correct place to live in.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21146
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c